package com.dailyblue.java.cloud.nacos.feign.feign;

import com.dailyblue.java.commons.util.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

// 代表这是一个feign客户端可以访问provider微服务
@FeignClient(name = "provider")
public interface ProviderFeign {
    @GetMapping("/provider/a")
    JsonResult a();

    @GetMapping("/provider/b/{a}")
    JsonResult b(@PathVariable("a") int a);

    @GetMapping("/provider/c/{a}/{b}")
    JsonResult c(@PathVariable("a") int a, @PathVariable("b") String b);

}
